package com.ycz.springcloud.service;/*
 @author ycz
 @date 2021-08-20-2:01  
*/

import com.ycz.springcloud.query.SysUserQuery;
import com.ycz.springcloud.vo.SysUserVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Component
@FeignClient(value = "CAR-PROVIDER-8001")
public interface SysUserApiService {
    @GetMapping("/sysuser/page.do")
    public Object page(SysUserQuery query);

    @GetMapping("/sysuser/page1.do")
    public List<SysUserVo> page2(SysUserQuery query);

    @PostMapping("/sysuser/login.do/")
    public Object login(@RequestParam("loginName") String loginName, @RequestParam("loginPassword") String loginPassword);


}
